/**
 * 
 */
package org.tigris.elfin.infix;

import java.io.*;
import java.util.Map;

import org.tigris.elfin.ExpressionProcessor;

/**
 * @author zhisen.huang
 *
 */
public class InfixExpressionProcessor implements ExpressionProcessor {

	/* (non-Javadoc)
	 * @see org.tigris.elfin.ExpressionProcessor#evaluate(java.lang.String, java.util.Map)
	 */
	public String evaluate(String expression, Map<String, Object> params)
			throws Exception {
		InfixEL infixel = new InfixEL(new StringReader(expression));
		infixel.assign(params);
		return infixel.start();
	}

}
